package com.action;

import com.dao.ITabAttendanceDao;
import com.dao.ITabDepositscheduleDao;
import com.opensymphony.xwork2.ModelDriven;
import com.po.TabAttendance;
import com.po.TabDepositschedule;

public class TabDepositscheduleAction extends BaseAction implements ModelDriven<TabDepositschedule>{

	TabDepositschedule form = new TabDepositschedule();
	public TabDepositschedule getModel(){
		return form;
	}
	private ITabDepositscheduleDao tabDepositscheduleDao;
	public void setTabDepositscheduleDao(ITabDepositscheduleDao tabDepositscheduleDao){
		this.tabDepositscheduleDao = tabDepositscheduleDao;
	}

	public String findByList(){
		form.setPager_count(tabDepositscheduleDao.findByCount(form));
		form.setTabdslist(tabDepositscheduleDao.findByList(form));
		return SUCCESS;
	}

	public String deleteObject(){
		tabDepositscheduleDao.deleteObejct(form);
		findByList();
		return SUCCESS;
	}

	public String updateObject(){
		tabDepositscheduleDao.updateObject(form);
		return "update";
	}

	

}
